import { createApp } from 'vue'
import { createPinia } from 'pinia'
import { getCategory } from './api/testapi'
import { lazyPlugin } from '@/directives/index'
import { componentPlugin } from './components'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import App from './App.vue'
import router from './router'
//引入初始化样式
import '@/styles/common.scss'
getCategory().then(res => {
    console.log(res)
})
const app = createApp(App)
app.use(lazyPlugin)
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)
app.use(pinia)
app.use(router)
app.use(componentPlugin)
app.mount('#app')
